package com.cgy.wodeyigui.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cgy.common.utils.PageUtils;
import com.cgy.wodeyigui.product.entity.AttrEntity;
import com.cgy.wodeyigui.product.vo.AttrGroupRelationVO;
import com.cgy.wodeyigui.product.vo.AttrResoponceVo;
import com.cgy.wodeyigui.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author Chen
 * @email 481691470@qq.com
 * @date 2022-01-12 10:51:51
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long cateLogId, String type);

    AttrResoponceVo getAttrInfo(Long attrId);

    void updateAttr(AttrResoponceVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVO[] vos);
}

